<?php

use yii\helpers\Html;
use kartik\detail\DetailView;
use kartik\datecontrol\DateControl;

/**
 * @var yii\web\View $this
 * @var backend\modules\trancfg\models\Maintran $model
 */

$this->title = $model->MTID;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Maintrans'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="maintran-view">
    <div class="page-header">
        <h1><?= Html::encode($this->title) ?></h1>
    </div>


    <?= DetailView::widget([
            'model' => $model,
            'condensed'=>false,
            'hover'=>true,
            'mode'=>Yii::$app->request->get('edit')=='t' ? DetailView::MODE_EDIT : DetailView::MODE_VIEW,
            'panel'=>[
            'heading'=>$this->title,
            'type'=>DetailView::TYPE_INFO,
        ],
        'attributes' => [
            'MTID',
            'MTNAME',
            'SUBSYSID',
            'TRANKIND',
            'TRANMODE',
            'TRANLVL',
            'SYSTYPE',
            'COMMODE',
            'PKGMODE',
            'MACCHK',
            'TELLERCHK',
            'BRCCHK',
            'TESTINFOLVL',
            'EXTFLAG1',
            'EXTFLAG2',
            'EXTFLAG3',
            'EXTFLAG4',
            'EXTFLAG5',
            'EXTFLAG6',
            'EXTITEM1',
            'EXTITEM2',
            'EXTITEM3',
            'EXTITEM4',
            'EXTITEM5',
            'EXTITEM6',
        ],
        'deleteOptions'=>[
        'url'=>['delete', 'id' => $model->MTID],
        'data'=>[
        'confirm'=>Yii::t('app', 'Are you sure you want to delete this item?'),
        'method'=>'post',
        ],
        ],
        'enableEditMode'=>true,
    ]) ?>

</div>
